QT -= gui
QT += network sql

CONFIG += c++11 console
CONFIG -= app_bundle

# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    ACT/Codec/DeviceRegisterCodec/DeviceRegisterCodec.cpp \
    ACT/Codec/DeviceRegisterCodec/DeviceRegisterCodec_Register.cpp \
    ACT/Codec/DeviceRegisterCodec/DeviceRegisterCodec_Unregister.cpp \
    ACT/Codec/HeartBeatCodec.cpp \
    ACT/Codec/MCUCodec/MCUCodec.cpp \
    ACT/Codec/MCUCodec/TransmitCodec.cpp \
    ACT/Codec/MEMSDataCodec.cpp \
    ACT/Codec/ReadMEMSDataCodec_Server.cpp \
    ACT/Codec/TcpCodec/TcpCodec.cpp \
    ACT/Codec/TcpCodec/TcpCodec_DataBase.cpp \
    ACT/Codec/TcpCodec/TcpCodec_HeartBeat.cpp \
    ACT/Codec/TcpCodec/TcpCodec_MCUCtl.cpp \
    ACT/Codec/TcpCodec/TcpCodec_MEMSData.cpp \
    ACT/Codec/TcpCodec/TcpCodec_ReadSensorData.cpp \
    ACT/Codec/TcpCodec/TcpCodec_Script.cpp \
    ACT/Codec/TcpCodec/TcpCodec_Transmit.cpp \
    ACT/Codec/TcpCodec/TcpCodec_TurnTable.cpp \
    ACT/Codec/TcpCodec/TcpCodec_User.cpp \
    ACT/Codec/TurnTableCodec/TurnTableCode_Thermostat_Connect.cpp \
    ACT/Codec/TurnTableCodec/TurnTableCode_Thermostat_CurrentTemperature.cpp \
    ACT/Codec/TurnTableCodec/TurnTableCode_Thermostat_Disconnect.cpp \
    ACT/Codec/TurnTableCodec/TurnTableCode_Thermostat_TargetTemperature.cpp \
    ACT/Codec/TurnTableCodec/TurnTableCode_Thermostat_TemperatureRate.cpp \
    ACT/Codec/TurnTableCodec/TurnTableCode_TurnTable_CloseCircuit.cpp \
    ACT/Codec/TurnTableCodec/TurnTableCode_TurnTable_Connect.cpp \
    ACT/Codec/TurnTableCodec/TurnTableCode_TurnTable_CurrentState.cpp \
    ACT/Codec/TurnTableCodec/TurnTableCode_TurnTable_Disconnect.cpp \
    ACT/Codec/TurnTableCodec/TurnTableCode_TurnTable_EmergencyStop.cpp \
    ACT/Codec/TurnTableCodec/TurnTableCode_TurnTable_MoveToZero.cpp \
    ACT/Codec/TurnTableCodec/TurnTableCode_TurnTable_OpenCircuit.cpp \
    ACT/Codec/TurnTableCodec/TurnTableCode_TurnTable_PowerOff.cpp \
    ACT/Codec/TurnTableCodec/TurnTableCode_TurnTable_PowerOn.cpp \
    ACT/Codec/TurnTableCodec/TurnTableCode_TurnTable_QuitConsole.cpp \
    ACT/Codec/TurnTableCodec/TurnTableCode_TurnTable_Run.cpp \
    ACT/Codec/TurnTableCodec/TurnTableCode_TurnTable_RunningMode.cpp \
    ACT/Codec/TurnTableCodec/TurnTableCode_TurnTable_RunningState.cpp \
    ACT/Codec/TurnTableCodec/TurnTableCode_TurnTable_SearchZero.cpp \
    ACT/Codec/TurnTableCodec/TurnTableCode_TurnTable_SearchZeroState.cpp \
    ACT/Codec/TurnTableCodec/TurnTableCode_TurnTable_SetLoad.cpp \
    ACT/Codec/TurnTableCodec/TurnTableCode_TurnTable_SetPositionMode.cpp \
    ACT/Codec/TurnTableCodec/TurnTableCode_TurnTable_SetRateMode.cpp \
    ACT/Codec/TurnTableCodec/TurnTableCode_TurnTable_Stop.cpp \
    ACT/Codec/TurnTableCodec/TurnTableCodec.cpp \
    ACT/Codec/TurnTableCodec/TurnTableDecode_Thermostat_CurrentTemperature.cpp \
    ACT/Codec/TurnTableCodec/TurnTableDecode_TurnTable_Connect.cpp \
    ACT/Codec/TurnTableCodec/TurnTableDecode_TurnTable_CurrentState.cpp \
    ACT/Codec/TurnTableCodec/TurnTableDecode_TurnTable_Disconnect.cpp \
    ACT/Codec/TurnTableCodec/TurnTableDecode_TurnTable_Error.cpp \
    ACT/Codec/TurnTableCodec/TurnTableDecode_TurnTable_RunningMode.cpp \
    ACT/Codec/TurnTableCodec/TurnTableDecode_TurnTable_RunningState.cpp \
    ACT/Codec/TurnTableCodec/TurnTableDecode_TurnTable_SearchZeroState.cpp \
    ACT/Codec/UdpCodec/UdpCodec.cpp \
    ACT/Codec/UdpCodec/UdpCodec_HeartBeat.cpp \
    ACT/Codec/UdpCodec/UdpCodec_MCUCtrl.cpp \
    ACT/Codec/UdpCodec/UdpCodec_Register.cpp \
    ACT/Codec/UdpCodec/UdpCodec_SensorData.cpp \
    ACT/Codec/UdpCodec/UdpCodec_Test.cpp \
    ACT/Codec/UdpCodec/UdpCodec_TurnTable.cpp \
    ACT/Codec/UserRegisterCodec/UserRegisterCodec.cpp \
    ACT/Codec/UserRegisterCodec/UserRegisterCodec_Register.cpp \
    ACT/Codec/UserRegisterCodec/UserRegisterCodec_Unregister.cpp \
    ACT/DataBase/DataBaseConnector.cpp \
    ACT/DataBase/MapperTool.cpp \
    ACT/DataBase/Mapper_Device.cpp \
    ACT/DataBase/Mapper_MEMSData.cpp \
    ACT/DataBase/Mapper_Test_RTT.cpp \
    ACT/DataBase/Mapper_User.cpp \
    ACT/DataBase/Mapper_testDataByTime.cpp \
    ACT/LogSaver.cpp \
    ACT/Manager/MsgIdManager.cpp \
    ACT/Manager/RegisterCenter/RegisterCenter_Device.cpp \
    ACT/Manager/RegisterCenter/RegisterCenter_User.cpp \
    ACT/Manager/TurnTable/TurnTableStateManager.cpp \
    ACT/Script/ScriptInstruction/ScriptInstruction.cpp \
    ACT/Script/ScriptInstruction/instruction/InstructionLoop.cpp \
    ACT/Script/ScriptInstruction/instruction/InstructionThermostatConnect.cpp \
    ACT/Script/ScriptInstruction/instruction/InstructionThermostatDisconnect.cpp \
    ACT/Script/ScriptInstruction/instruction/InstructionThermostatTargetTemperature.cpp \
    ACT/Script/ScriptInstruction/instruction/InstructionThermostatTemperatureRate.cpp \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTableCloseCircuit.cpp \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTableConnect.cpp \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTableDisconnect.cpp \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTableEmergencyStop.cpp \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTableOpenCircuit.cpp \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTablePositionMode.cpp \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTablePowerOff.cpp \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTablePowerOn.cpp \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTableQuitConsole.cpp \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTableRateMode.cpp \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTableRun.cpp \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTableSetLoad.cpp \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTableStop.cpp \
    ACT/Script/ScriptInstruction/instruction/InstructionWait.cpp \
    ACT/Script/ScriptInstructionFactory.cpp \
    ACT/Script/ScriptRunner.cpp \
    ACT/Script/ScriptSaveLoader.cpp \
    ACT/UdpController.cpp \
    Entity/DataPackage_TcpCodec.cpp \
    Entity/DataPackage_UdpCodec.cpp \
    Entity/DataPackage_UserRegisterCodec.cpp \
    Entity/Device.cpp \
    Entity/MEMSData.cpp \
    Entity/TransmitRecord.cpp \
    Entity/TurnTableState.cpp \
    Entity/User.cpp \
    IO/TcpIOer/TcpDataPreprocessor.cpp \
    IO/TcpIOer/TcpIOer.cpp \
    IO/TcpListener/NewTcpIOHandler.cpp \
    IO/TcpListener/TcpListener.cpp \
    IO/TcpListener/TcpThread.cpp \
    IO/UdpIOer.cpp \
    ObjAutoInject.cpp \
    ObjectManager.cpp \
    main.cpp

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

HEADERS += \
    ACT/Codec/DeviceRegisterCodec/DeviceRegisterCodec.h \
    ACT/Codec/DeviceRegisterCodec/DeviceRegisterCodecBase.h \
    ACT/Codec/DeviceRegisterCodec/DeviceRegisterCodec_Register.h \
    ACT/Codec/DeviceRegisterCodec/DeviceRegisterCodec_Unregister.h \
    ACT/Codec/HeartBeatCodec.h \
    ACT/Codec/MCUCodec/MCUCodec.h \
    ACT/Codec/MCUCodec/TransmitCodec.h \
    ACT/Codec/MEMSDataCodec.h \
    ACT/Codec/ReadMEMSDataCodec_Server.h \
    ACT/Codec/TcpCodec/TcpCodec.h \
    ACT/Codec/TcpCodec/TcpCodecBase.h \
    ACT/Codec/TcpCodec/TcpCodec_DataBase.h \
    ACT/Codec/TcpCodec/TcpCodec_HeartBeat.h \
    ACT/Codec/TcpCodec/TcpCodec_MCUCtl.h \
    ACT/Codec/TcpCodec/TcpCodec_MEMSData.h \
    ACT/Codec/TcpCodec/TcpCodec_ReadSensorData.h \
    ACT/Codec/TcpCodec/TcpCodec_Script.h \
    ACT/Codec/TcpCodec/TcpCodec_Transmit.h \
    ACT/Codec/TcpCodec/TcpCodec_TurnTable.h \
    ACT/Codec/TcpCodec/TcpCodec_User.h \
    ACT/Codec/TurnTableCodec/TurnTableCodeBase.h \
    ACT/Codec/TurnTableCodec/TurnTableCode_Thermostat_Connect.h \
    ACT/Codec/TurnTableCodec/TurnTableCode_Thermostat_CurrentTemperature.h \
    ACT/Codec/TurnTableCodec/TurnTableCode_Thermostat_Disconnect.h \
    ACT/Codec/TurnTableCodec/TurnTableCode_Thermostat_TargetTemperature.h \
    ACT/Codec/TurnTableCodec/TurnTableCode_Thermostat_TemperatureRate.h \
    ACT/Codec/TurnTableCodec/TurnTableCode_TurnTable_CloseCircuit.h \
    ACT/Codec/TurnTableCodec/TurnTableCode_TurnTable_Connect.h \
    ACT/Codec/TurnTableCodec/TurnTableCode_TurnTable_CurrentState.h \
    ACT/Codec/TurnTableCodec/TurnTableCode_TurnTable_Disconnect.h \
    ACT/Codec/TurnTableCodec/TurnTableCode_TurnTable_EmergencyStop.h \
    ACT/Codec/TurnTableCodec/TurnTableCode_TurnTable_MoveToZero.h \
    ACT/Codec/TurnTableCodec/TurnTableCode_TurnTable_OpenCircuit.h \
    ACT/Codec/TurnTableCodec/TurnTableCode_TurnTable_PowerOff.h \
    ACT/Codec/TurnTableCodec/TurnTableCode_TurnTable_PowerOn.h \
    ACT/Codec/TurnTableCodec/TurnTableCode_TurnTable_QuitConsole.h \
    ACT/Codec/TurnTableCodec/TurnTableCode_TurnTable_Run.h \
    ACT/Codec/TurnTableCodec/TurnTableCode_TurnTable_RunningMode.h \
    ACT/Codec/TurnTableCodec/TurnTableCode_TurnTable_RunningState.h \
    ACT/Codec/TurnTableCodec/TurnTableCode_TurnTable_SearchZero.h \
    ACT/Codec/TurnTableCodec/TurnTableCode_TurnTable_SearchZeroState.h \
    ACT/Codec/TurnTableCodec/TurnTableCode_TurnTable_SetLoad.h \
    ACT/Codec/TurnTableCodec/TurnTableCode_TurnTable_SetPositionMode.h \
    ACT/Codec/TurnTableCodec/TurnTableCode_TurnTable_SetRateMode.h \
    ACT/Codec/TurnTableCodec/TurnTableCode_TurnTable_Stop.h \
    ACT/Codec/TurnTableCodec/TurnTableCodec.h \
    ACT/Codec/TurnTableCodec/TurnTableDecodeBase.h \
    ACT/Codec/TurnTableCodec/TurnTableDecode_Thermostat_CurrentTemperature.h \
    ACT/Codec/TurnTableCodec/TurnTableDecode_TurnTable_Connect.h \
    ACT/Codec/TurnTableCodec/TurnTableDecode_TurnTable_CurrentState.h \
    ACT/Codec/TurnTableCodec/TurnTableDecode_TurnTable_Disconnect.h \
    ACT/Codec/TurnTableCodec/TurnTableDecode_TurnTable_Error.h \
    ACT/Codec/TurnTableCodec/TurnTableDecode_TurnTable_RunningMode.h \
    ACT/Codec/TurnTableCodec/TurnTableDecode_TurnTable_RunningState.h \
    ACT/Codec/TurnTableCodec/TurnTableDecode_TurnTable_SearchZeroState.h \
    ACT/Codec/UdpCodec/UdpCodec.h \
    ACT/Codec/UdpCodec/UdpCodecBase.h \
    ACT/Codec/UdpCodec/UdpCodec_HeartBeat.h \
    ACT/Codec/UdpCodec/UdpCodec_MCUCtrl.h \
    ACT/Codec/UdpCodec/UdpCodec_Register.h \
    ACT/Codec/UdpCodec/UdpCodec_SensorData.h \
    ACT/Codec/UdpCodec/UdpCodec_Test.h \
    ACT/Codec/UdpCodec/UdpCodec_TurnTable.h \
    ACT/Codec/UserRegisterCodec/UserRegisterCodec.h \
    ACT/Codec/UserRegisterCodec/UserRegisterCodecBase.h \
    ACT/Codec/UserRegisterCodec/UserRegisterCodec_Register.h \
    ACT/Codec/UserRegisterCodec/UserRegisterCodec_Unregister.h \
    ACT/DataBase/DataBaseConnector.h \
    ACT/DataBase/MapperTool.h \
    ACT/DataBase/Mapper_Device.h \
    ACT/DataBase/Mapper_MEMSData.h \
    ACT/DataBase/Mapper_Test_RTT.h \
    ACT/DataBase/Mapper_User.h \
    ACT/DataBase/Mapper_testDataByTime.h \
    ACT/LogSaver.h \
    ACT/Manager/MsgIdManager.h \
    ACT/Manager/RegisterCenter/RegisterCenter_Device.h \
    ACT/Manager/RegisterCenter/RegisterCenter_User.h \
    ACT/Manager/TurnTable/TurnTableStateManager.h \
    ACT/Script/ScriptInstruction/ScriptInstruction.h \
    ACT/Script/ScriptInstruction/instruction/InstructionLoop.h \
    ACT/Script/ScriptInstruction/instruction/InstructionThermostatConnect.h \
    ACT/Script/ScriptInstruction/instruction/InstructionThermostatDisconnect.h \
    ACT/Script/ScriptInstruction/instruction/InstructionThermostatTargetTemperature.h \
    ACT/Script/ScriptInstruction/instruction/InstructionThermostatTemperatureRate.h \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTableCloseCircuit.h \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTableConnect.h \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTableDisconnect.h \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTableEmergencyStop.h \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTableOpenCircuit.h \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTablePositionMode.h \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTablePowerOff.h \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTablePowerOn.h \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTableQuitConsole.h \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTableRateMode.h \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTableRun.h \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTableSetLoad.h \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTableStop.h \
    ACT/Script/ScriptInstruction/instruction/InstructionWait.h \
    ACT/Script/ScriptInstructionFactory.h \
    ACT/Script/ScriptRunner.h \
    ACT/Script/ScriptSaveLoader.h \
    ACT/Script/StateChecker/StateChecker.h \
    ACT/UdpController.h \
    Entity/DataPackage_TcpCodec.h \
    Entity/DataPackage_UdpCodec.h \
    Entity/DataPackage_UserRegisterCodec.h \
    Entity/Device.h \
    Entity/MEMSData.h \
    Entity/TransmitRecord.h \
    Entity/TurnTableState.h \
    Entity/User.h \
    IO/TcpIOer/TcpDataPreprocessor.h \
    IO/TcpIOer/TcpIOer.h \
    IO/TcpListener/NewTcpIOHandler.h \
    IO/TcpListener/TcpListener.h \
    IO/TcpListener/TcpThread.h \
    IO/UdpIOer.h \
    MacroDefinition.h \
    ObjAutoInject.h \
    ObjectManager.h

INCLUDEPATH += \
    ./ACT/ \
    ./ACT/Codec/ \
    ./ACT/Codec/DeviceRegisterCodec/ \
    ./ACT/Codec/UserRegisterCodec/ \
    ./ACT/Codec/UdpCodec/ \
    ./ACT/Codec/MCUCodec/ \
    ./ACT/Codec/TcpCodec/ \
    ./ACT/Codec/TurnTableCodec/ \
    ./ACT/Manager/ \
    ./ACT/Manager/RegisterCenter/ \
    ./ACT/Manager/TurnTable/ \
    ./ACT/DataBase/ \
    ./ACT/Script/ \
    ./ACT/Script/ScriptInstruction/ \
    ./ACT/Script/ScriptInstruction/instruction/ \
    ./ACT/Script/StateChecker/ \
    ./IO/ \
    ./IO/TcpIOer/ \
    ./IO/TcpListener/ \
    ./Entity/

